package com.作业.Day7;

public class Homework4 {
    public static void main(String[] args) {
        Pet dog = new Dog();
        Pet penguin = new Penguin();
         dog.feed();
         dog.play();
         penguin.feed();
         penguin.play();
        System.out.println(dog.health);
        System.out.println(penguin.health);
    }
}

